<?php

namespace Entities;

use Doctrine\ORM\Mapping as ORM;

/**
 * Entities\Treespecie
 */
class Treespecie
{
    /**
     * @var string $latinname
     */
    private $latinname;

    /**
     * @var string $popularname
     */
    private $popularname;

    /**
     * @var integer $id
     */
    private $id;


    /**
     * Set latinname
     *
     * @param string $latinname
     * @return Treespecie
     */
    public function setLatinname($latinname)
    {
        $this->latinname = $latinname;
        return $this;
    }

    /**
     * Get latinname
     *
     * @return string 
     */
    public function getLatinname()
    {
        return $this->latinname;
    }

    /**
     * Set popularname
     *
     * @param string $popularname
     * @return Treespecie
     */
    public function setPopularname($popularname)
    {
        $this->popularname = $popularname;
        return $this;
    }

    /**
     * Get popularname
     *
     * @return string 
     */
    public function getPopularname()
    {
        $name = '';
        
        if ($this->popularname !== null) {
            $name = $this->popularname;
        }
        
        return $name;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
}